package com.itheima.d4.Period;

import java.time.LocalDate;
import java.time.Month;
import java.time.Period;

public class Test {
    public static void main(String[] args) {
        //计算日期间隔差距 Period 用于Local Date
        LocalDate localDate = LocalDate.now();
        System.out.println("today"+localDate);
        LocalDate birthDate = LocalDate.of(1993,6,29);
        System.out.println("birthday"+birthDate);
        Period between = Period.between(localDate, birthDate);
        System.out.println(between.getYears());
        System.out.println(between.getMonths());
        System.out.println(between.getDays());

    }
}
